-- GENERATED SPELL FOR [Elenna Edune] --


function spell0_24738(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24738', 538, 1)
end

function Sorts_24738(pUnit, Event)
local choix_sorts_24738 = math.random(0, 0)
if choix_sorts_24738 == 0 then
pUnit:RegisterEvent('spell0_24738', 1, 1)
end
end

function mob24738_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24738', math.random(1500, 3000), 1)
end

function mob24738_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24738_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24738_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24738, 1, 'mob24738_Action')
RegisterUnitEvent(24738, 2, 'mob24738_Leave')
RegisterUnitEvent(24738, 3, 'mob24738_Kill')
RegisterUnitEvent(24738, 4, 'mob24738_Die')
